package org.learn.langchain.langchain4jlearn.config;


import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hzy
 * @Description:
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("LangChain4J API")
                        .version("1.0.0")
                        .description("LangChain4J与Ollama集成的示例API文档")
                        .termsOfService("http://swagger.io/terms/")
                        .contact(new Contact().name("开发团队").email("team@example.com"))
                        .license(new License().name("Apache 2.0").url("http://springdoc.org")));
    }
}

